<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>工时计算管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<form:form id="searchForm" modelAttribute="warehouseKpiReport" action="${ctx}/warehousekpi/warehouseKpiReport/costList" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
		   <!-- 
			<li><label>warehouse：</label>
				<form:select path="warehouse" class="input-medium">
					<form:option value="" label=""/>
					<form:options items="${fns:getDictList('warehouse_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
			</li>
			 -->
			<li>
				<label>Date：&nbsp;</label><input id="beginDate" name="beginDate" type="text" readonly="readonly" maxlength="20" class="input-mini Wdate"
					value="<fmt:formatDate value="${warehouseKpiReport.beginDate}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
				&nbsp;--&nbsp;<input id="endDate" name="endDate" type="text" readonly="readonly" maxlength="20" class="input-mini Wdate"
					value="<fmt:formatDate value="${warehouseKpiReport.endDate}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>&nbsp;&nbsp;
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="Search"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
			    <th>Warehouse</th>
				<th>Attendance</th>
				<th>rate(￥)</th>
				<th>cost(￥)</th>
				<th>rate($)</th>
				<th>cost($)</th>
				
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="warehouseKpiReport">
			<tr>
				<td>
					${warehouseKpiReport.warehouse}
				</td>
				<td>
					<fmt:formatNumber value="${warehouseKpiReport.stunden}" pattern="0"/>
				</td>
				<td>
					${warehouseKpiReport.rate}
				</td>
				<td>
					<fmt:formatNumber value="${warehouseKpiReport.cost}" pattern="0"/>
				</td>
				<td>
					${warehouseKpiReport.localRate}
				</td>
				<td>
					<fmt:formatNumber value="${warehouseKpiReport.localCost}" pattern="0"/>
				</td>
			</tr>
		</c:forEach>
		<tr>
				<td>
					Summary
				</td>
				<td>
					<fmt:formatNumber value="${warehouseKpiReport.stundenSummary}" pattern="0"/>
				</td>
				<td>
					
				</td>
				<td>
					<fmt:formatNumber value="${warehouseKpiReport.costSummary}" pattern="0"/>
				</td>
				<td>
					
				</td>
				<td>
					<fmt:formatNumber value="${warehouseKpiReport.localCostSummary}" pattern="0"/>
				</td>
		</tr>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>